#include "precompiled.h"
#pragma hdrstop

namespace inf {
    ReferenceCounted::ReferenceCounted() : ref(0) {
        _add_ref();
    }

    void ReferenceCounted::release() {
        _sub_ref();
        if(ref == 0) {
            delete this;
        }
    }

}   // ::inf
